//import kotlinx.cinterop.*
//import io.sakurasou.c.http.*
//
///**
// * @author Shiina Kin
// * 2024/6/5 19:24
// */
//@ExperimentalForeignApi
//fun main() {
//    println("curl_easy_perform() failed")
//    val curl = curl_easy_init()
//    if (curl != null) {
//        curl_easy_setopt(curl, CURLOPT_URL, "https://www.baidu.com/")
//        curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L)
//        val res = curl_easy_perform(curl)
//        if (res != CURLE_OK) {
//            println("curl_easy_perform() failed ${curl_easy_strerror(res)?.toKString()}")
//        }
//        curl_easy_cleanup(curl)
//    }
//}
